package com.wisezone.demo0217;

public class Person {
    private  String name;
    private int age;

    public Person() {

    }
    public Person(int age){
        this.name="李四";
        this.age=age;
    }
    

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void  show(){
        String str ="SHOW:[name="+name+",age="+age+"]";
        System.out.println(str);
    }
    public void display(String nation){
        System.out.println("My address is!"+nation);
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Person(String name, int age){
        this.name=name;
        this.age=age;

    }
}
